package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.CommodityDao;
import service.CommodityManager;
import vo.Commodity;

@Service("commodityService")
public class CommodityManagerImpl implements CommodityManager {
	@Autowired(required=true)
	@Resource(name="commodityDao")
	private CommodityDao commodityDao;
	/**查看商品得信息*/
	@Override
	public List<Commodity> showCommodity() {
		return commodityDao.findAllCommodity();
	}

	@Override
	public Commodity findCommodityById(String commodityId) {
		// TODO Auto-generated method stub
		return null;
	}

}
